<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!doctype html>
<html>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<jsp:include page="../common/import.jsp" flush="true"></jsp:include>
<body>
<jsp:include page="../common/header.jsp" flush="true"></jsp:include>

<div class="main p20">
	<div class="container clear">
        <ul class="left-nav fl pt20 w200">
            <li><a href="${base}/agent/agent/agentList.xhtml"><span class="iconfont">&#xf014d;</span>代理商</a></li>
            <li><a href="${base}/agent/sales/salesList.xhtml"><span class="iconfont">&#xf014d;</span>业务员</a></li>
            <li><a class="ahover" href="${base}/agent/merchant/merchantList.xhtml"><span class="iconfont">&#xf014b;</span>商户</a></li>
        </ul>
        
        <input type="hidden" name="qualificationId" id="qualificationId" value="${qualificationId}">
        <input type="hidden" name="phone" id="phone" value="${phone}">
        <div class="main-right fr">
        	<div class="b m20 b-radius">
            	<div class="clear bgf5 bb">
                	<h2 class="fl h30 lg30 p5 pl10">商户</h2>
                    <a onclick="backMerchantList()" href="javascript:" class="fr h20 p5 w80 m5 bg1eb9ef cfff b-radius tc"><span class="vm">返回商户</span></a>
                </div>
                
                <div class="clear p10 bgf5 bt h20 lg20 mt20">
                    <div class="fl fb">商户：${phone}</div>
                    <button class="fr caac81a" onclick="addStore()"><span class="iconfont f12">&#xf0175;</span>&nbsp;添加商铺</button>
                </div>
                

            </div>
        </div>
    </div>
</div>

<jsp:include page="../common/footer.jsp" flush="true"></jsp:include>
<!-- 
<div class="footer">
	<div class="clear container">
		<div class="fl">
            <span>京ICP备 13021939号-28</span>
            <a class="ml20" href="http://mp.wangpos.com/app/about#5" target="_blank">联系我们</a>
            <a class="ml10" href="http://weibo.com/u/5446650933" target="_blank"><img src="http://mp.wangpos.com/public/images/icon_weibo.png"></a> 
            <a class="ml10" href="http://mp.wangpos.com/app/about#1"><img src="http://mp.wangpos.com/public/images/icon_weixin.png"></a>
		</div>
		<a class="fr" href="http://mp.wangpos.com/app/about#1">北京微智全景信息技术有限公司</a>
	</div>
</div>
 -->
<script type="text/javascript">
function addStore(){
	var phone = $("#phone").val();
	var qualificationId =$("#qualificationId").val();
	
	window.location.href="${base}/agent/store/toAdd.xhtml?&qualificationId="+qualificationId;
}
function backMerchantList(){
	window.location.href="${base}/agent/merchant/merchantList.xhtml";
}
</script>
</body>
</html>